@layout("/common/_curd/_container.html"){

	<form data-url="${basePath}/${code}/save" method="post" class="form-horizontal" role="form">
		<!-- 表单 -->
		@ var _table="hjmallind_user";
		@ var _col=[
@			  {name:"", index:"id", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"用户类型：0=管理员，1=普通用户", index:"type", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"", index:"username", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"", index:"password", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"", index:"auth_key", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"", index:"access_token", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"", index:"addtime", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"", index:"is_delete", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"微信openid", index:"wechat_open_id", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"微信用户union id", index:"wechat_union_id", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"昵称", index:"nickname", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"", index:"avatar_url", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"商城id", index:"store_id", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"是否是分销商 0--不是 1--是 2--申请中", index:"is_distributor", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"父级ID", index:"parent_id", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"成为分销商的时间", index:"time", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"累计佣金", index:"total_price", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"可提现佣金", index:"price", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"是否是核销员 0--不是 1--是", index:"is_clerk", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"微擎账户id", index:"we7_uid", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"", index:"shop_id", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"会员等级", index:"level", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"用户当前积分", index:"integral", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"用户总获得积分", index:"total_integral", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"余额", index:"money", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"联系方式", index:"contact_way", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"备注", index:"comments", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"授权手机号", index:"binding", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"微信公众号openid", index:"wechat_platform_open_id", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"小程序平台 0 => 微信, 1 => 支付宝", index:"platform", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"黑名单 0.否 | 1.是", index:"blacklist", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"可能成为上级的ID", index:"parent_user_id", type:"text",newline:true,length:8,required:"required"}		
		@		   ];
		@ include("/common/_curd/_add.html", {"col":_col, "table":_table}){}
		
		<!-- 按钮 -->
		@ include("/common/_curd/_btn.html", {btn_save:"新增", btn_close:"关闭"}) {}
	</form>

@}
